package com.biovr.backend.domain;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * Created by monodev on 2017/6/6.
 * 服务端推送，注意是http方式，不是socket
 */
@ApiModel(value="PublishMessage")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document
public class PublishMessage {
    @Id
    private String id;
    //推送目的地：index：首页
    private String publishTarget="index";
    //链接
    private String linkUrl;
    //排序
    private  int index=0;
    //是否显示
    private  boolean show=true;
    private  String title;
    private String publishTime;
    private  String content;
    private String coverImage;
    //发送者的UserId
    private  String publisherId;
    private String publisherUsername;
}
